import Koa from 'koa';
import StaticPlugin from './plguins/Static.js';
import RewritePlugin from './plguins/Rewrite.js';
import FindModule from './plguins/FindModule.js';
import complierVue from './plguins/sfc.js';
import InjectScript from './plguins/InjectScript.js';
let app = new Koa()
let plugins = [RewritePlugin,FindModule,complierVue,InjectScript,StaticPlugin]
let root = process.cwd() //根路径
plugins.forEach(plugin => plugin({ app, root }))
app.listen(5173,()=>{
    console.log('server is running at http://localhost:5173');
})
